package org.zsl.controller.doc;

import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zsl.service.EmployeeService;

@RestController
@RequestMapping("/doc")
@CrossOrigin
public class BasicController {

    private EmployeeService service= new EmployeeService();


    @GetMapping("/list")
    public String list(){

        return JSON.toJSONString(service.getAll()) ;

    }

}
